/**
@brief CaseTerrain:<br>
Header contenant toutes les les variables et fonctions relatives aux cases d'une Carte
@author Dahan Geslain , Damien Chay
@file caseTerrain.h
@version 1.0
@date 15/11/2012
*/

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "CaseTerrain.h"

//Mutateur

void setTerrain(CaseTerrain *CaseT,unsigned int NTerrain)
{
    CaseT->terrain = NTerrain;
}
void setDecor(CaseTerrain *CaseT,unsigned int NDecor)
{
    CaseT->decor = NDecor;
}
void setCollision(CaseTerrain *CaseT,bool NCollision)
{
    CaseT->collision = NCollision;
}

//Accesseur

unsigned int getTerrain(const CaseTerrain *CaseT)
{
    return CaseT->terrain;
}
unsigned int getDecor(const CaseTerrain *CaseT)
{
    return CaseT->decor;
}
bool getCollision(const CaseTerrain *CaseT)
{
    return CaseT->collision;
}

void InitCase(CaseTerrain *CaseT,unsigned char NTerrain ,unsigned char NDecor ,bool NCollision)
{
    CaseT->terrain = NTerrain;
    CaseT->decor = NDecor;
    CaseT->collision = NCollision;
}
